* @return {String} selected pluralized form according to current language
*/
plural: function ( nodes ) {
- var count = parseInt( this.language.convertNumber( nodes[0], true ), 10 );
+ var count = parseFloat( this.language.convertNumber( nodes[0], true ) );
var forms = nodes.slice(1);
return forms.length ? this.language.convertPlural( count, forms ) : '';
},
[ 9999, [ "zero", "one", "two", "few", "many", "other" ], "many", "Arabic plural test - 9999 is many" ],
[ 100, [ "zero", "one", "two", "few", "many", "other" ], "other", "Arabic plural test - 100 is other" ],
[ 102, [ "zero", "one", "two", "few", "many", "other" ], "other", "Arabic plural test - 102 is other" ],
- [ 1000, [ "zero", "one", "two", "few", "many", "other" ], "other", "Arabic plural test - 1000 is other" ]
- // FIXME plural rules for decimal numbers does not work
- // [ 1.7, [ "zero", "one", "two", "few", "many", "other" ], "other", "Arabic plural test - 1.7 is other" ],
+ [ 1000, [ "zero", "one", "two", "few", "many", "other" ], "other", "Arabic plural test - 1000 is other" ],
+ [ 1.7, [ "zero", "one", "two", "few", "many", "other" ], "other", "Arabic plural test - 1.7 is other" ]
]
};